<?php
/**
 * Created by PhpStorm.
 * User: ZL
 * CreateTime: 2016/6/13 14:18
 */

use  common\widgets\DetailView;
use yii\bootstrap\Html;

echo DetailView::widget([
    'model' => $model,
    'attributes' => [
        'tradeID',
        'identity',
        'realName',
        'phone',
        [
            'label' => '证件正面照',
            'value' => $model->positiveCard,
            'format' => 'image',
        ],
        [
            'label' => '证件反面照',
            'value' => $model->versoCard,
            'format' => 'image',
        ],
        [
            'label' => ' 推荐人交易号',
            'format' => 'raw',
            'value' => \common\models\DAO\User::getUser($model->paterID)['tradeID']
        ],
        [
            'label' => '推荐人姓名',
            'format' => 'raw',
            'value' => \common\models\DAO\User::getUser($model->paterID)['realName']
        ],
        [
            'label' => '银行卡号',
            'format' => 'raw',
            'value' => \common\models\DAO\User::getCardNum($model->id)
        ],
        [
            'label' => '银行卡照片',
            'value' => $model->bankCard,
            'format' => 'image',
        ],
       
        'createTime:datetime',
    ],
    'template' => '<th>{label}</th><td>{value}</td>',
    'options' => ['class' => 'table table-striped table-bordered detail-view'],
]);